<?php
global $_GPC, $_W;
$pageindex = max(1, intval($_GPC['page']));
$pagesize=10;
$where = " 1=1";

if($_COOKIE["storeid"]>0){
	$where .= " and type=1 and store_id=".$_COOKIE["storeid"];
}

$sql="select *  from " . tablename("cjdc_xxhint") ."  WHERE ".$where." and uniacid=:uniacid ";
$select_sql =$sql." LIMIT " .($pageindex - 1) * $pagesize.",".$pagesize;

$list = pdo_fetchall($select_sql,array(':uniacid'=>$_W['uniacid']));	
   
$total=pdo_fetchcolumn("select count(*) from " . tablename("cjdc_xxhint") ." WHERE ".$where." and uniacid=:uniacid ",array(':uniacid'=>$_W['uniacid']));
$pager = pagination($total, $pageindex, $pagesize);

include $this->template('web/mymessage');
